// 用户相关类型
export interface User {
  id: number;
  name: string;
  email: string;
  avatar?: string;
}

// API响应类型
export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T;
}

// 路由守卫类型
export interface RouteGuard {
  path: string;
  requireAuth: boolean;
  roles?: string[];
}

// 全局状态类型
export interface AppState {
  user: User | null;
  isAuthenticated: boolean;
  loading: boolean;
  theme: 'light' | 'dark';
}

// 登录表单类型
export interface LoginForm {
  email: string;
  password: string;
}

// 注册表单类型
export interface RegisterForm {
  name: string;
  email: string;
  password: string;
  confirmPassword: string;
}
